<?php 
Yii::app()->clientScript->scriptMap['jquery.js'] = false;
?>
<div class="modal-header">
    <a class="close" data-dismiss="modal">&times;</a>
    <h4>
        Evento
    </h4>
</div>
<div class="modal-body">
    <?php
    /** @var ActividadController $this */
    /** @var Actividad $model */
    /** @var AweActiveForm $form */
    $form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'id' => 'actividad-form',
    'enableAjaxValidation' => true,
    'enableClientValidation'=> false,
        'action' => $model->isNewRecord ? Yii::app()->createUrl('/actividades/actividad/create') : Yii::app()->createUrl('/actividades/actividad/update', array('id' => $model->id)),
    )); ?>

    <p class="note">
        <?php echo Yii::t('AweCrud.app', 'Fields with') ?> <span class="required">*</span>
        <?php echo Yii::t('AweCrud.app', 'are required') ?>.    </p>

    <?php echo $form->errorSummary($model) ?>

                            <?php echo $form->dropDownListRow($model, 'evento_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Evento::model()->findAll(), 'id', Evento::representingColumn())) ?>
                        <?php echo $form->textFieldRow($model, 'nombre', array('maxlength' => 200)) ?>
                        <?php echo $form->datepickerRow($model, 'fecha', array('prepend' => '<i class="icon-calendar"></i>',
                             'options' => array('format' => 'yyyy/mm/dd')
                            )) ?>
                        <?php echo $form->timepickerRow($model, 'hora_inicio',array( 'options' => array('showMeridian' => false, 'defaultTime' => false)));  ?>
                        <?php 
                         echo $form->timepickerRow($model, 'hora_fin', array( 'options' => array('showMeridian' => false, 'defaultTime' => false))); 
                          ?>
   
    
                        <?php // echo $form->textFieldRow($model, 'hora_fin') ?>
                        <?php echo $form->textFieldRow($model, 'tutor', array('maxlength' => 100)) ?>
                        <?php echo $form->textFieldRow($model, 'tematica', array('maxlength' => 100)) ?>
        
</div>
    <div class="modal-footer">
    
                <?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'success',
			'label'=>$model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
		)); ?>
        <?php $this->widget('bootstrap.widgets.TbButton', array(
			//'buttonType'=>'submit',
			'label'=> Yii::t('AweCrud.app', 'Cancel'),
			//'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
            'htmlOptions' => array('data-dismiss' => 'modal')
		)); ?>
</div>
    <?php $this->endWidget(); ?>

    